package ooday04;
/** 鱼 */
public class Fish extends Animal implements Swim {
    Fish(String name,int age,String color){
        super(name,age,color);
    }

    void eat(){
        System.out.println(getAge()+"岁的"+getColor()+"色的"+getName()+"在吃小虾");
    }

    public void swim(){
        System.out.println(getAge()+"岁的"+getColor()+"色的"+getName()+"游泳");
    }
}
